package com.ruoyi.iot.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 规则执行动作对象 iot_rules_action
 *
 * @author ruoyi
 * @date 2025-03-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IotRulesAction extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 动作ID
     */
    private Long actionId;

    /**
     * 规则ID
     */
    @Excel(name = "规则ID")
    private Long ruleId;

    /**
     * 执行动作类型（deviceOutput:设备输出；reportError:上报告警；reportNotice:上报通知）
     */
    @Excel(name = "执行动作类型", readConverterExp = "deviceOutput:设备输出；reportError:上报告警；reportNotice:上报通知")
    private String type;

    /**
     * 产品key
     */
    @Excel(name = "产品key")
    private String productId;

    /**
     * 设备ID
     */
    @Excel(name = "设备ID")
    private Long deviceId;

    /**
     * 服务ID/方法ID/告警ID
     */
    @Excel(name = "服务ID/方法ID/告警ID")
    private String serviceMethod;

    /**
     * 服务名/方法名/告警名称
     */
    @Excel(name = "服务名/方法名/告警名称")
    private String serviceMethodName;

    /**
     * 参数
     */
    @Excel(name = "参数")
    private String serviceParams;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


}
